# Subrotine used to set the spectral dispersion for each grating
# Written by Sergio Scarano Jr (scaranojr@ctio.noao.edu) mar 2010.

#print '<p>', grating

if grating == '300':
    disp=1.3 # A/pixel
    obsfile=os.path.join(_path,'obs300.dat')
    teofile=os.path.join(_path,'teoLTT3218.dat')
    binobs=2
    slitobs=1.03 # arcsec
    gainobs=2.06
    rdnsobs=3.99
    expobs=180
elif grating == '600b':
    disp=0.65 # A/pixel
    obsfile=os.path.join(_path,'obs600b.dat')
    teofile=os.path.join(_path,'teoLTT3218.dat')
    binobs=2
    slitobs=1.03 # arcsec
    gainobs=2.06
    rdnsobs=3.99
    expobs=180
elif grating == '600r':
    disp=0.65 # A/pixel
    obsfile=os.path.join(_path,'obs600r.dat')
    teofile=os.path.join(_path,'teoLTT3218.dat')
    binobs=2
    slitobs=1.03 # arcsec
    gainobs=2.06
    rdnsobs=3.99
    expobs=180
elif grating == '600r+GG495': # We don't have this
    disp=0.65 # A/pixel
    obsfile=os.path.join(_path,'obs600r(GG-495).dat')
    teofile=os.path.join(_path,'teoLTT3218.dat')
    binobs=2
    slitobs=1.03 # arcsec
    gainobs=2.06
    rdnsobs=3.99
    expobs=180
elif grating == '1200m1':
    disp=0.31 # A/pixel
    obsfile=os.path.join(_path,'obs1200m1.dat')
    teofile=os.path.join(_path,'teoLTT4816.dat')
    binobs=1
    slitobs=40 # arcsec
    gainobs=2.06
    rdnsobs=3.99
    expobs=600
elif grating == '1200m2': # We don't have this
    disp=0.31 # A/pixel
    obsfile=os.path.join(_path,'obs1200m2.dat')
    teofile=os.path.join(_path,'teoLTT4816.dat')
    binobs=1
    slitobs=40 # arcsec
    gainobs=2.06
    rdnsobs=3.99
    expobs=600
elif grating == '1200m3':
    disp=0.31 # A/pixel
    obsfile=os.path.join(_path,'obs1200m3.dat')
    teofile=os.path.join(_path,'teoLTT4816.dat')
    binobs=1
    slitobs=40 # arcsec
    gainobs=2.06
    rdnsobs=3.99
    expobs=60
elif grating == '1200m4': # We don't have this
    disp=0.31 # A/pixel
    obsfile=os.path.join(_path,'obs1200m4.dat')
    teofile=os.path.join(_path,'teoLTT4816.dat')
    binobs=1
    slitobs=40 # arcsec
    gainobs=2.06
    rdnsobs=3.99
    expobs=600
elif grating == '1200m5': # We don't have this
    disp=0.31 # A/pixel
    obsfile=os.path.join(_path,'obs1200m5.dat')
    teofile=os.path.join(_path,'teoLTT6248.dat')
    binobs=1
    slitobs=40 # arcsec
    gainobs=2.06
    rdnsobs=3.99
    expobs=600
elif grating == '1200m5(GG-455)':
    disp=0.31 # A/pixel
    obsfile=os.path.join(_path,'obs1200m5(GG-455).dat')
    teofile=os.path.join(_path,'teoLTT6248.dat')
    binobs=1
    slitobs=40 # arcsec
    gainobs=2.06
    rdnsobs=3.99
    expobs=600
elif grating == '1200m6': # We don't have this
    disp=0.31 # A/pixel
    obsfile=os.path.join(_path,'obs1200m6.dat')
    teofile=os.path.join(_path,'teoLTT6248.dat')
    binobs=1
    slitobs=40 # arcsec
    gainobs=2.06
    rdnsobs=3.99
    expobs=600
elif grating == '1200m7': # We don't have this
    disp=0.31 # A/pixel
    obsfile=os.path.join(_path,'obs1200m7.dat')
    teofile=os.path.join(_path,'teoLTT6248.dat')
    binobs=1
    slitobs=40 # arcsec
    gainobs=2.06
    rdnsobs=3.99
    expobs=600
elif grating == '1200m7(OG-570)':
    disp=0.31 # A/pixel
    obsfile=os.path.join(_path,'obs1200m7.dat')
    teofile=os.path.join(_path,'teoLTT6248.dat')
    binobs=1
    slitobs=40 # arcsec
    gainobs=2.06
    rdnsobs=3.99
    expobs=600
